 
<h2><?php echo $this->tituloInforme; ?></h2>
<table class="tabla_reducida" style="width: 80%;">
    <thead>
        <tr>
            <th>Fecha</th>
            <th>Comentario</th>
            <th>Tipo</th>
        </tr>
    </thead>
    <tbody>
        <?php $informe = new Doctrine_Model_Entities_Informe(); ?>
        
        <?php
            $tiposInformes = array(1,3,4,5);
            $cont = array();
            if ($this->informes):
            foreach ($this->informes as $informe) {
                $id_informe = $informe->getTipoInfome()->getId();
                if (in_array($id_informe, $tiposInformes) && !in_array($id_informe, $cont)) {
                    $cont[] = $informe->getTipoInfome()->getId();
                }
            }
            endif;
            if (count($cont) == 4) {
                echo "<input id='existencia_informes' type='hidden' value='1' />";
            } else {
                echo "<input id='existencia_informes' type='hidden' value='0' />";
            }
        ?>
        <?php if ($this->informes): ?>
        <?php foreach ($this->informes as $informe) { ?>
            <tr>
                <td><?php echo Doctrine_Model_Utilidad::formatoFechaParaMostrar($informe->getFecha()) ?></td>
                <td><?php echo $informe->getComentario(); ?></td>
                <td><?php echo $informe->getTipoInfome()->getDescripcion(); ?></td>
            </tr>
        <?php } ?>
        <?php endif; ?>

    </tbody>
</table>


